﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/MasterHome.master" AutoEventWireup="true"
    CodeFile="DetailsProduct.aspx.cs" Inherits="DetailsProduct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        textarea
        {
            resize: none;
        border-style: none;
        background-color:White;        
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ListView ID="ListView1" runat="server">
        <EmptyDataTemplate>
            <table runat="server" style="">
                <tr>
                    <td>
                        No data was returned.
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
            <td>
                <td>
                    <asp:Image ID="Image1" runat="server"  ImageUrl='<%# Eval("pBigImage" ,"~/ImageProduct/{0}" ) %>' Height="300px"  Width="250px"/>
                </td>
            </td>
            <td>
                <table runat="server">
                    <tr style="">
                        <td>
                            Name :
                        </td>
                        <td>
                            <asp:Label ID="pNameLabel" runat="server" Text='<%# Eval("pName") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            ProductCode:
                        </td>
                        <td>
                            <asp:Label ID="pProductCodeLabel" runat="server" Text='<%# Eval("pProductCode") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Description :
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="200px" Height="100px" Text='<%# Eval("pDescription") %>' ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Price :
                        </td>
                        <td>
                            <asp:Label ID="pPriceLabel" runat="server" Text='<%# Eval("pPrice") %>' />
                        </td>
                    </tr>
                </table>
            </td>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table id="itemPlaceholderContainer" runat="server" border="0" style="">
                            <tr runat="server" style="">
                            </tr>
                            <tr id="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="">
                        <asp:Button ID="btnAtCart" runat="server" Text="Add to cart " onclick="Button2_Click" />
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ShopConnectionString %>"
        SelectCommand="SELECT [pBigImage], [pName], [pProductCode], [pDescription], [pPrice] FROM [Products]">
    </asp:SqlDataSource>
    
</asp:Content>
